const mongoose = require('mongoose')
const default_config = require('../config/default_config')
const main = async ()=>{
    await mongoose.connect(default_config.mongoseURL)
}

main().then(()=>{
    console.log('mongoDB链接成功')
}).catch((err)=>{
    console.log('mongoDB链接成功',err)
})

module.exports = {
    useModel:mongoose.model('User',require('./useModel'))
}